﻿using HamsterDocs.EntityFrameworkCore.Sqlite.Extensions;

namespace HamsterDocs.Hosting.Extensions;

public static class EntityFrameworkCoreExtensions
{
    public static IServiceCollection UseDbContext(this IServiceCollection services, IConfiguration configuration)
    {
        switch (configuration.GetConnectionString("Type"))
        {
            case "sqlite":
                services.AddSqliteDbContext(configuration);
                break;
        }


        return services;
    }
}